<h4>修改密码</h4>
<form>
    <div class="form-group">
        <label>旧密码</label>
        <input type="password" name="opwd" class="form-control" id="opwd" placeholder="旧密码"/>
    </div>
    <div class="form-group">
        <label>新密码</label>
        <input type="password" name="npwd" class="form-control" id="npwd" placeholder="新密码"/>
    </div>
    <div class="form-group">
        <label>确认新密码</label>
        <input type="password" name="cpwd" class="form-control" id="cpwd" placeholder="确认新密码"/>
    </div>
    <div class="form-group my_tip" id="chpwd_ok" style="display:none">
        <p class="text-success">密码修改成功。</p>
    </div>
    <div class="form-group my_tip" id="chpwd_fail" style="display:none">
        <p class="text-danger">旧密码错误，修改失败。</p>
    </div>
    <div class="form-group my_tip" id="chpwd_incon" style="display:none">
        <p class="text-danger">新密码的两次输入不匹配。</p>
    </div>
    <div class="form-group my_tip" id="chpwd_repeat" style="display:none">
        <p class="text-danger">新旧密码不能相同。</p>
    </div>
    <div class="form-group my_tip" id="chpwd_short" style="display:none">
        <p class="text-danger">新密码太短，至少需要8位。</p>
    </div>
    <div class="form-group my_tip" id="chpwd_uke" style="display:none">
        <p class="text-danger">网络错误，密码修改失败。</p>
    </div>
    <div class="form-group">
        <a href="javascript:submit_chpwd();" class="btn btn-primary">确定</a>
    </div>
</form>
<script src="/js/chpwd.js"></script>